export default{
   namespaced: true,
   state:{
     address:uni.getStorageSync('address')||{}
   },
   mutations:{
     setAddress(state,addressObj){
       state.address=addressObj
       uni.setStorageSync('address',state.address)
     }
   },
   actions:{},
   getters:{
     fullAddress(state){
       if(!state.address.provinceName) return ''
       return state.address.provinceName+state.address.cityName+state.address.countyName+state.address.detailInfo
     }
   }
}